/**
 * Copyright (c) 2019-2029, wwww.kiwipeach.cn (liuburu@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package cn.kiwipeach.blog.database.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 博客信息实体（博客列表使用）
 *
 * @author kiwipeach
 * @since 1.0
 */
@Data
@Accessors(chain = true)
@ToString
// 处理报错问题：No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory$EnhancedResultObjectProxyImpl and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: cn.kiwipeach.blog.base.AjaxResponse["data"]->com.baomidou.mybatisplus.extension.plugins.pagination.Page["records"]->java.util.ArrayList[0]->cn.kiwipeach.blog.domain.BlogInfoVO_$$_jvstb76_0["handler"])
@JsonIgnoreProperties(value = {"handler"})
public class BlogInfoVO implements Serializable {
    private String id;
    private String userId;
    private String nickName;
    private String cateId;
    private String categoryName;
    private String title;
    private String starCount;
    private String commentCount;
    private String viewCount;
    private String top;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String updateTime;
    private String contentType;
    private String introduction;
    private String coverUrl;
    /**
     * 博客标签
     */
    private List<TagVO> blogTagList = new ArrayList<>();

}
